package ElectricCraft.frames;

import ElectricCraft.model.ChipModel;
import ElectricCraft.model.ModelPackage;

import javax.swing.*;
import java.util.List;

/**
 *
 */
public interface MainWindow {
    void            openModel(ChipModel model);
    ModelPackage    getPackage();
    boolean         savePackage(boolean saveAll);

    JFrame          getFrame();

    void            updateModelNames();

    ChipEditorPane  getEditorByModel(ChipModel model);
    ChipEditorPane  getCurrentEditor();
    void            setCurrentEditor(ChipEditorPane editor);
    void            closeEditor(ChipEditorPane model);

    List<ChipEditorPane> getOpenedEditors();
}
